cc.Class({
    extends: cc.Component,

    properties: {
        backToMenu:cc.Node,
        bgMusic:{
            default:null,
            url:cc.AudioClip,
        }
    },
    onLoad : function(){    
        cc.audioEngine.playMusic(this.bgMusic),   
        cc.director.preloadScene('welcome');
        this.backToMenu.on("touchstart",this.back);
    },
    back: function() {
        cc.audioEngine.pauseMusic();
        cc.director.loadScene('welcome');
    },

});
